/*******************************************************************************
 * Copyright (c) 2010, 2015 git@git.oschina.net:kaiwill/springstage.git
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 *******************************************************************************/
package com.qinyeit.serviceapp.entity.system;

import com.qinyeit.serviceapp.entity.MerchantGroupBaseEntity;
import com.qinyeit.serviceapp.entity.enums.Scope;

import javax.persistence.*;

/** 
 * ClassName: ManagementPermission <br/>
 * Function: 门店角色关系 <br/>
 * date: 2015年10月6日 上午11:20:46 <br/> 
 * 
 * @author wuqing 
 * @version  
 * @since JDK 1.7 
 */
@Entity
@Table(name="merchant_role_permissions")
public class MerchantRolePermission extends MerchantGroupBaseEntity<Long> {
	private static final long serialVersionUID = 1L;

	// 连锁店角色id
	@Column(name="role_id")
	private Long roleId = null;

	// 门店权限id
	@Column(name="permission_id")
	private Long permissionId = null;

	//收银权限或门店后台权限
	@Column(name = "scope")
	@Enumerated(EnumType.STRING)
	private Scope scope=Scope.BACK_END; //权限使用范围


	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Long getPermissionId() {
		return permissionId;
	}

	public void setPermissionId(Long permissionId) {
		this.permissionId = permissionId;
	}

}
